<!--
  ~ Copyright 2017 ABSA Group Limited
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~     http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->
<div *ngIf="propertiesContain(PropertyType.Transformations)">
  <mat-accordion>
    <mat-expansion-panel [expanded]="true">
      <mat-expansion-panel-header>
        <i class="fa fa-xs" [style.color]=getColor()>{{getIcon()}}</i>&nbsp; <b> Transformations </b>
      </mat-expansion-panel-header>
      <div>
        <div *ngFor="let property of properties ;let i=index">
          <div *ngIf="property.type===PropertyType.Transformations"><a href=""
              (click)="openExprViewDialog($event, property)">
              <i class='transformation-prexif'>λ = </i><code>{{property.value}}</code></a></div>
        </div>
      </div>
    </mat-expansion-panel>
  </mat-accordion>
</div>

<div *ngIf="propertiesContain(PropertyType.DroppedAttributes)">
  <mat-accordion>
    <mat-expansion-panel [expanded]="true">
      <mat-expansion-panel-header>
        <i class="fa fa-xs" [style.color]=getColor()>{{getIcon()}}</i>&nbsp; <b> Dropped
          Attributes</b>
      </mat-expansion-panel-header>
      <div>
        <div *ngFor="let property of properties ;let i=index">
          <div *ngIf="property.type===PropertyType.DroppedAttributes"><i class='dropped-attribute-prexif'>a =
            </i><del><code>{{property.value}}</code></del></div>
        </div>
      </div>
    </mat-expansion-panel>
  </mat-accordion>
</div>